package com.example.agrigreennewssys.entity;

import lombok.Data;

import java.util.List;

@Data
public class Comment {
    private Long id;
    private Long articleId;
    private Long userId;
    private String content;
    private Long parentId;
    private Long replyToId;
    private Integer likes;
    private Integer status;
    private String createdAt;
    private String updatedAt;

    // 关联对象
    private Article article;  // 关联的文章
    private UserProfile user;            // 评论用户
    private UserProfile replyToUser;     // 回复的用户
    private List<Comment> replies; // 子评论
}
